#include <QApplication>
#include <QtGui>
#include "sstructure.h"
#include "snode.h"
#include "sege.h"
//
int main(int argc, char ** argv)
{
	QApplication app( argc, argv );

	SStructure structure;

	structure.addNode(0,0,"v1");
	structure.addNode(100,50,"v2");
	structure.addNode(0,150,"v3");

	structure.addEge("v1","v2");
	structure.addEge("v2","v3");
	structure.addEge("v1","v3");

	QGraphicsView view(&structure);
	view.setRenderHint(QPainter::Antialiasing);
	view.show();

	return app.exec();
}
